<div class="content-box"><!-- start_chungloai Content Box -->
    <div class="content-box-header">
        <h3>Quản lý danh mục sản phẩm</h3>
        <ul class="content-box-tabs">
            <li><a href="#tab1" class="default-tab">Table</a></li> <!-- href must be unique and match the id of target div -->
            <li><a href="#tab2">Forms</a></li>
        </ul>
        <div class="clear"></div>
    </div> <!-- End .content-box-header -->
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        	<table id="stock-table" class="table table-bordered">
                <tbody><tr bgcolor="#9fe1e1" id="sort-row" data-base-url="" class="">
                    <th>STT</th>
                    <th data-model="Stock" id="stock_name">Ảnh danh mục</th>
                    <th data-model="Stock" id="stock_name">Tên danh mục</th>
					<th data-model="Stock" id="stock_name">Mã danh mục</th>
                    <th>Sửa / Xóa</th>
                </tr>
                <?php
                $sql5=mysql_query("SELECT * FROM `tbl_danhmuc`");
				$stt=0;
				while($row5=mysql_fetch_array($sql5))
				{
					
					$stt++;
				?>
                    <tr class="error" <?php if(($stt%2)==1){echo 'bgcolor="#f2f1f1"';}else{echo 'bgcolor="#fce3f0"';}?>>
                        <th><?php echo $stt;?></th>
                        <th><img src="../uploads/<?php echo $row5['anhdm']?>" width="110" height="86" class="sp-img"></th>
                        <th><a href="index.php?page=danhmuc&act=edit&id=<?php echo $row5['id'];?>" class="edit"><?php echo $row5['danhmuc'];?></a></th>
						<th><?php echo $row5['danhmuc_id'];?></th>
                        <th>
                            <a href="index.php?page=danhmuc&act=edit&id=<?php echo $row5['id'];?>" class="edit"><img src="resources/images/icons/edit.png" alt="Edit" /></a>
                            <a href="index.php?page=danhmuc&act=del&id=<?php echo $row5['id'];?>" class="del" onclick="return confirmSubmit()"><img src="resources/images/icons/del.png" alt="Delete" /></a>                                    </th>
                    </tr>
               <?php
				}
			   ?>
                    </tbody>
              </table>
        </div> <!-- End #tab1 -->
    </div> <!-- End .content-box-content -->
</div> <!-- End .content-box -->
<script LANGUAGE="JavaScript">
    function confirmSubmit()
    {
        var agree=confirm("Bạn có chắc chắn xóa không?");
        if (agree)
            return true ;
        else
            return false ;
    }
</script>